package action;

import java.math.BigDecimal;

import entity.Users;
import dao.UsersDao;
import com.opensymphony.xwork2.ActionSupport;

public class RegisterAction extends ActionSupport{
	
	private Users users;

	public Users getUsers() {
		return users;
	}

	public void setUsers(Users user) {
		this.users = user;
	}

	@Override
	public String execute() throws Exception {
		UsersDao dao = new UsersDao();
		users.setId(new BigDecimal(0));
		dao.save(users);
		return SUCCESS;
	}
	
	

}
